import { createApp } from 'vue';
import { createPinia } from 'pinia';
import App from './App.vue';
import router from './router';
import i18nPlugin from './utils/myplugin'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/main.css' 

const app = createApp(App);

app.use(createPinia());
app.use(router);
app.use(i18nPlugin, {
  greetings: {
    hello: '您好'
  }
})
app.use(ElementPlus)
app.directive('highlight', {
    mounted: (el) => {
        el.classList.add('is-highlight')
      }
  })

  app.directive('color',  (el,binding) => {
      
      el.style.color =  binding.value
    
  })
app.mount('#aaa');